//
//  UIView+Frame.m
//  01-UIView、UIWindow
//
//  Created by GivenBmli on 16/7/14.
//  Copyright © 2016年 QC.L. All rights reserved.
//

#import "UIView+Frame.h"

@implementation UIView (Frame)
- (void)setMl_x:(CGFloat)ml_x{
    CGRect rect = self.frame;
    rect.origin.x = ml_x;
    self.frame = rect;
}
- (CGFloat)ml_x{
    return self.frame.origin.x;
}
- (void)setMl_y:(CGFloat)ml_y{
    CGRect rect = self.frame;
    rect.origin.y = ml_y;
    self.frame = rect;
}
- (CGFloat)ml_y{
    return self.frame.origin.y;
}

- (void)setMl_width:(CGFloat)ml_width{
    CGRect rect = self.frame;
    rect.size.width = ml_width;
    self.frame = rect;

}

- (CGFloat)ml_width{
    return self.frame.size.width;
}

- (void)setMl_height:(CGFloat)ml_height{
    CGRect rect = self.frame;
    rect.size.height  = ml_height;
    self.frame = rect;

}

- (CGFloat)ml_height{
    return self.frame.size.height;
}


@end
